<?php

class GolonganDao{
	
	public function getGolongan($kdgol){
		$db=Database::getInstance();
        $con=$db->getConnection(1);

        $query="SELECT * FROM t_gol WHERE kdgol='$kdgol'";

        $result=$con->prepare($query);
        $result->execute();

        if($result->rowCount()==1){
            return $result->fetch();
        }

        return false;
	}


}

class Golongan{
	
	var $kdgol;
	var $nmgol;
    var $pangkat;
}


?>